﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

public class VehiclePurchaseUserInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public virtual long? Id { get; set; }

    /// <summary>
    /// 买家Id
    /// </summary>
    [Required(ErrorMessage = "买家Id不能为空")]
    public virtual long? BuyerId { get; set; }

    /// <summary>
    /// 上牌地区Id
    /// </summary>
    public virtual string? RegionId { get; set; }

    /// <summary>
    /// 车源地地区Id(市级)
    /// </summary>
    public string SourceRegionId { get; set; }

    /// <summary>
    /// 类型
    /// </summary>
    public virtual VehicleTypeEnum? Type { get; set; }

    /// <summary>
    /// 期望品牌
    /// </summary>
    public virtual long? BrandId { get; set; }

    /// <summary>
    /// 期望车型
    /// </summary>
    public virtual long? ModelId { get; set; }

    /// <summary>
    /// 外观颜色
    /// </summary>
    public virtual ColorEnum? ExteriorColor { get; set; }

    /// <summary>
    /// 内饰颜色
    /// </summary>
    public virtual ColorEnum? InteriorColor { get; set; }

    /// <summary>
    /// 选装配置
    /// </summary>
    public virtual string OptionalConfigs { get; set; }

    /// <summary>
    /// 全款预算（万元）
    /// </summary>
    public virtual decimal? FullPaymentBudget { get; set; }

    /// <summary>
    /// 分期首付（万元）
    /// </summary>
    public virtual decimal? InstallmentDownPayment { get; set; }

    /// <summary>
    /// 月供预算（元）
    /// </summary>
    public virtual decimal? MonthlyPayment { get; set; }

    /// <summary>
    /// 是否接受旧车置换
    /// </summary>
    public virtual bool? AcceptTradeIn { get; set; }

    /// <summary>
    /// 车况要求
    /// </summary>
    public virtual VehicleConditionEnum? ConditionRequirement { get; set; }

    /// <summary>
    /// 期望上牌年份（开始）
    /// </summary>
    public virtual int? RegisterYearFrom { get; set; }

    /// <summary>
    /// 期望上牌年份（结束）
    /// </summary>
    public virtual int? RegisterYearTo { get; set; }

    /// <summary>
    /// 最低预算
    /// </summary>
    public virtual decimal? BudgetMin { get; set; }

    /// <summary>
    /// 最高预算
    /// </summary>
    public virtual decimal? BudgetMax { get; set; }

    /// <summary>
    /// 期望里程数（万公里）
    /// </summary>
    public virtual decimal? ExpectedMileage { get; set; }

    /// <summary>
    /// 补充要求
    /// </summary>
    public virtual string AdditionalRequirements { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public virtual string? Remark { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    public virtual PurchaseStatusEnum? Status { get; set; }

}

/// <summary>
/// 车辆求购信息表基础输入参数
/// </summary>
public class AppVehiclePurchaseBaseInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public virtual long? Id { get; set; }
    
    /// <summary>
    /// 买家Id
    /// </summary>
    [Required(ErrorMessage = "买家Id不能为空")]
    public virtual long? BuyerId { get; set; }
    
    /// <summary>
    /// 上牌地区Id
    /// </summary>
    [Required(ErrorMessage = "上牌地区Id不能为空")]
    public virtual string? RegionId { get; set; }

    /// <summary>
    /// 车源地地区Id(市级)
    /// </summary>
    public string SourceRegionId { get; set; }

    /// <summary>
    /// 类型
    /// </summary>
    [Dict(nameof(VehicleTypeEnum), AllowNullValue=true)]
    [Required(ErrorMessage = "类型不能为空")]
    public virtual VehicleTypeEnum? Type { get; set; }
    
    /// <summary>
    /// 期望品牌
    /// </summary>
    [Required(ErrorMessage = "期望品牌不能为空")]
    public virtual long? BrandId { get; set; }
    
    /// <summary>
    /// 期望车型
    /// </summary>
    [Required(ErrorMessage = "期望车型不能为空")]
    public virtual long? ModelId { get; set; }
    
    /// <summary>
    /// 外观颜色
    /// </summary>
    [Dict(nameof(ColorEnum), AllowNullValue=true)]
    public virtual ColorEnum? ExteriorColor { get; set; }
    
    /// <summary>
    /// 内饰颜色
    /// </summary>
    [Dict(nameof(ColorEnum), AllowNullValue=true)]
    public virtual ColorEnum? InteriorColor { get; set; }
    
    /// <summary>
    /// 选装配置
    /// </summary>
    public virtual string OptionalConfigs { get; set; }
    
    /// <summary>
    /// 全款预算（万元）
    /// </summary>
    public virtual decimal? FullPaymentBudget { get; set; }
    
    /// <summary>
    /// 分期首付（万元）
    /// </summary>
    public virtual decimal? InstallmentDownPayment { get; set; }
    
    /// <summary>
    /// 月供预算（元）
    /// </summary>
    public virtual decimal? MonthlyPayment { get; set; }
    
    /// <summary>
    /// 是否接受旧车置换
    /// </summary>
    public virtual bool? AcceptTradeIn { get; set; }
    
    /// <summary>
    /// 车况要求
    /// </summary>
    [Dict(nameof(VehicleConditionEnum), AllowNullValue=true)]
    public virtual VehicleConditionEnum? ConditionRequirement { get; set; }
    
    /// <summary>
    /// 期望上牌年份（开始）
    /// </summary>
    public virtual int? RegisterYearFrom { get; set; }
    
    /// <summary>
    /// 期望上牌年份（结束）
    /// </summary>
    public virtual int? RegisterYearTo { get; set; }
    
    /// <summary>
    /// 最低预算
    /// </summary>
    public virtual decimal? BudgetMin { get; set; }
    
    /// <summary>
    /// 最高预算
    /// </summary>
    public virtual decimal? BudgetMax { get; set; }
    
    /// <summary>
    /// 期望里程数（万公里）
    /// </summary>
    public virtual decimal? ExpectedMileage { get; set; }
    
    /// <summary>
    /// 补充要求
    /// </summary>
    public virtual string AdditionalRequirements { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    public virtual string? Remark { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [Dict(nameof(PurchaseStatusEnum), AllowNullValue=true)]
    public virtual PurchaseStatusEnum? Status { get; set; }
    
}

/// <summary>
/// 车辆求购信息表分页查询输入参数
/// </summary>
public class PageAppVehiclePurchaseInput : BasePageInput
{
    /// <summary>
    /// 买家Id
    /// </summary>
    public long? BuyerId { get; set; }
    
    /// <summary>
    /// 上牌地区Id
    /// </summary>
    public string? RegionId { get; set; }

    /// <summary>
    /// 车源地地区Id(市级)
    /// </summary>
    public string SourceRegionId { get; set; }

    /// <summary>
    /// 类型
    /// </summary>
    [Dict(nameof(VehicleTypeEnum), AllowNullValue=true)]
    public VehicleTypeEnum? Type { get; set; }
    
    /// <summary>
    /// 期望品牌
    /// </summary>
    public long? BrandId { get; set; }
    
    /// <summary>
    /// 期望车型
    /// </summary>
    public long? ModelId { get; set; }
    
    /// <summary>
    /// 外观颜色
    /// </summary>
    [Dict(nameof(ColorEnum), AllowNullValue=true)]
    public ColorEnum? ExteriorColor { get; set; }
    
    /// <summary>
    /// 全款预算（万元）
    /// </summary>
    public decimal? FullPaymentBudget { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [Dict(nameof(PurchaseStatusEnum), AllowNullValue=true)]
    public PurchaseStatusEnum? Status { get; set; }
    
    /// <summary>
    /// 选中主键列表
    /// </summary>
     public List<long> SelectKeyList { get; set; }
}

/// <summary>
/// 车辆求购信息表增加输入参数
/// </summary>
public class AddAppVehiclePurchaseInput
{
    /// <summary>
    /// 买家Id
    /// </summary>
    public long? BuyerId { get; set; }
    
    /// <summary>
    /// 上牌地区Id
    /// </summary>
    [Required(ErrorMessage = "上牌地区Id不能为空")]
    public long? RegionId { get; set; }

    /// <summary>
    /// 车源地地区Id(市级)
    /// </summary>
    public string? SourceRegionId { get; set; }

    /// <summary>
    /// 类型
    /// </summary>
    [Dict(nameof(VehicleTypeEnum), AllowNullValue=true)]
    [Required(ErrorMessage = "类型不能为空")]
    public VehicleTypeEnum? Type { get; set; }
    
    /// <summary>
    /// 期望品牌
    /// </summary>
    [Required(ErrorMessage = "期望品牌不能为空")]
    public long? BrandId { get; set; }
    
    /// <summary>
    /// 期望车型
    /// </summary>
    [Required(ErrorMessage = "期望车型不能为空")]
    public long? ModelId { get; set; }
    
    /// <summary>
    /// 外观颜色
    /// </summary>
    [Dict(nameof(ColorEnum), AllowNullValue=true)]
    public ColorEnum? ExteriorColor { get; set; }
    
    /// <summary>
    /// 内饰颜色
    /// </summary>
    [Dict(nameof(ColorEnum), AllowNullValue=true)]
    public ColorEnum? InteriorColor { get; set; }
    
    /// <summary>
    /// 选装配置
    /// </summary>
    [MaxLength(128, ErrorMessage = "选装配置字符长度不能超过128")]
    public string OptionalConfigs { get; set; }
    
    /// <summary>
    /// 全款预算（万元）
    /// </summary>
    public decimal? FullPaymentBudget { get; set; }
    
    /// <summary>
    /// 分期首付（万元）
    /// </summary>
    public decimal? InstallmentDownPayment { get; set; }
    
    /// <summary>
    /// 月供预算（元）
    /// </summary>
    public decimal? MonthlyPayment { get; set; }
    
    /// <summary>
    /// 是否接受旧车置换
    /// </summary>
    public bool? AcceptTradeIn { get; set; }
    
    /// <summary>
    /// 车况要求
    /// </summary>
    [Dict(nameof(VehicleConditionEnum), AllowNullValue=true)]
    public VehicleConditionEnum? ConditionRequirement { get; set; }
    
    /// <summary>
    /// 期望上牌年份（开始）
    /// </summary>
    public int? RegisterYearFrom { get; set; }
    
    /// <summary>
    /// 期望上牌年份（结束）
    /// </summary>
    public int? RegisterYearTo { get; set; }
    
    /// <summary>
    /// 最低预算
    /// </summary>
    public decimal? BudgetMin { get; set; }
    
    /// <summary>
    /// 最高预算
    /// </summary>
    public decimal? BudgetMax { get; set; }
    
    /// <summary>
    /// 期望里程数（万公里）
    /// </summary>
    public decimal? ExpectedMileage { get; set; }
    
    /// <summary>
    /// 补充要求
    /// </summary>
    [MaxLength(500, ErrorMessage = "补充要求字符长度不能超过500")]
    public string AdditionalRequirements { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [MaxLength(128, ErrorMessage = "备注字符长度不能超过128")]
    public string? Remark { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [Dict(nameof(PurchaseStatusEnum), AllowNullValue=true)]
    public PurchaseStatusEnum? Status { get; set; }
    
}

/// <summary>
/// 车辆求购信息表删除输入参数
/// </summary>
public class DeleteAppVehiclePurchaseInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
}

/// <summary>
/// 车辆求购信息表更新输入参数
/// </summary>
public class UpdateAppVehiclePurchaseInput
{
    /// <summary>
    /// 主键Id
    /// </summary>    
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
    /// <summary>
    /// 买家Id
    /// </summary>    
    [Required(ErrorMessage = "买家Id不能为空")]
    public long? BuyerId { get; set; }
    
    /// <summary>
    /// 上牌地区Id
    /// </summary>    
    [Required(ErrorMessage = "上牌地区Id不能为空")]
    public long? RegionId { get; set; }

    /// <summary>
    /// 车源地地区Id(市级)
    /// </summary>
    public string SourceRegionId { get; set; }

    /// <summary>
    /// 类型
    /// </summary>    
    [Dict(nameof(VehicleTypeEnum), AllowNullValue=true)]
    [Required(ErrorMessage = "类型不能为空")]
    public VehicleTypeEnum? Type { get; set; }
    
    /// <summary>
    /// 期望品牌
    /// </summary>    
    [Required(ErrorMessage = "期望品牌不能为空")]
    public long? BrandId { get; set; }
    
    /// <summary>
    /// 期望车型
    /// </summary>    
    [Required(ErrorMessage = "期望车型不能为空")]
    public long? ModelId { get; set; }
    
    /// <summary>
    /// 外观颜色
    /// </summary>    
    [Dict(nameof(ColorEnum), AllowNullValue=true)]
    public ColorEnum? ExteriorColor { get; set; }
    
    /// <summary>
    /// 内饰颜色
    /// </summary>    
    [Dict(nameof(ColorEnum), AllowNullValue=true)]
    public ColorEnum? InteriorColor { get; set; }
    
    /// <summary>
    /// 选装配置
    /// </summary>    
    [MaxLength(128, ErrorMessage = "选装配置字符长度不能超过128")]
    public string OptionalConfigs { get; set; }
    
    /// <summary>
    /// 全款预算（万元）
    /// </summary>    
    public decimal? FullPaymentBudget { get; set; }
    
    /// <summary>
    /// 分期首付（万元）
    /// </summary>    
    public decimal? InstallmentDownPayment { get; set; }
    
    /// <summary>
    /// 月供预算（元）
    /// </summary>    
    public decimal? MonthlyPayment { get; set; }
    
    /// <summary>
    /// 是否接受旧车置换
    /// </summary>    
    public bool? AcceptTradeIn { get; set; }
    
    /// <summary>
    /// 车况要求
    /// </summary>    
    [Dict(nameof(VehicleConditionEnum), AllowNullValue=true)]
    public VehicleConditionEnum? ConditionRequirement { get; set; }
    
    /// <summary>
    /// 期望上牌年份（开始）
    /// </summary>    
    public int? RegisterYearFrom { get; set; }
    
    /// <summary>
    /// 期望上牌年份（结束）
    /// </summary>    
    public int? RegisterYearTo { get; set; }
    
    /// <summary>
    /// 最低预算
    /// </summary>    
    public decimal? BudgetMin { get; set; }
    
    /// <summary>
    /// 最高预算
    /// </summary>    
    public decimal? BudgetMax { get; set; }
    
    /// <summary>
    /// 期望里程数（万公里）
    /// </summary>    
    public decimal? ExpectedMileage { get; set; }
    
    /// <summary>
    /// 补充要求
    /// </summary>    
    [MaxLength(500, ErrorMessage = "补充要求字符长度不能超过500")]
    public string AdditionalRequirements { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>    
    [MaxLength(128, ErrorMessage = "备注字符长度不能超过128")]
    public string? Remark { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>    
    [Dict(nameof(PurchaseStatusEnum), AllowNullValue=true)]
    public PurchaseStatusEnum? Status { get; set; }
    
}

/// <summary>
/// 车辆求购信息表主键查询输入参数
/// </summary>
public class QueryByIdAppVehiclePurchaseInput : DeleteAppVehiclePurchaseInput
{
}

/// <summary>
/// 下拉数据输入参数
/// </summary>
public class DropdownDataAppVehiclePurchaseInput
{
    /// <summary>
    /// 是否用于分页查询
    /// </summary>
    public bool FromPage { get; set; }
}

/// <summary>
/// 车辆求购信息表数据导入实体
/// </summary>
[ExcelImporter(SheetIndex = 1, IsOnlyErrorRows = true)]
public class ImportAppVehiclePurchaseInput : BaseImportInput
{
    /// <summary>
    /// 买家Id 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? BuyerId { get; set; }
    
    /// <summary>
    /// 买家Id 文本
    /// </summary>
    [ImporterHeader(Name = "*买家Id")]
    [ExporterHeader("*买家Id", Format = "", Width = 25, IsBold = true)]
    public string BuyerFkDisplayName { get; set; }
    
    /// <summary>
    /// 上牌地区Id 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public string? RegionId { get; set; }

    /// <summary>
    /// 车源地地区Id(市级)
    /// </summary>
    public string SourceRegionId { get; set; }

    /// <summary>
    /// 上牌地区Id 文本
    /// </summary>
    [ImporterHeader(Name = "*上牌地区Id")]
    [ExporterHeader("*上牌地区Id", Format = "", Width = 25, IsBold = true)]
    public string RegionFkDisplayName { get; set; }
    
    /// <summary>
    /// 类型
    /// </summary>
    [ImporterHeader(Name = "*类型")]
    [ExporterHeader("*类型", Format = "", Width = 25, IsBold = true)]
    public VehicleTypeEnum? Type { get; set; }
    
    /// <summary>
    /// 期望品牌 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? BrandId { get; set; }
    
    /// <summary>
    /// 期望品牌 文本
    /// </summary>
    [ImporterHeader(Name = "*期望品牌")]
    [ExporterHeader("*期望品牌", Format = "", Width = 25, IsBold = true)]
    public string BrandFkDisplayName { get; set; }
    
    /// <summary>
    /// 期望车型 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? ModelId { get; set; }
    
    /// <summary>
    /// 期望车型 文本
    /// </summary>
    [ImporterHeader(Name = "*期望车型")]
    [ExporterHeader("*期望车型", Format = "", Width = 25, IsBold = true)]
    public string ModelFkDisplayName { get; set; }
    
    /// <summary>
    /// 外观颜色
    /// </summary>
    [ImporterHeader(Name = "外观颜色")]
    [ExporterHeader("外观颜色", Format = "", Width = 25, IsBold = true)]
    public ColorEnum? ExteriorColor { get; set; }
    
    /// <summary>
    /// 内饰颜色
    /// </summary>
    [ImporterHeader(Name = "内饰颜色")]
    [ExporterHeader("内饰颜色", Format = "", Width = 25, IsBold = true)]
    public ColorEnum? InteriorColor { get; set; }
    
    /// <summary>
    /// 选装配置
    /// </summary>
    [ImporterHeader(Name = "选装配置")]
    [ExporterHeader("选装配置", Format = "", Width = 25, IsBold = true)]
    public string OptionalConfigs { get; set; }
    
    /// <summary>
    /// 全款预算（万元）
    /// </summary>
    [ImporterHeader(Name = "全款预算（万元）")]
    [ExporterHeader("全款预算（万元）", Format = "", Width = 25, IsBold = true)]
    public decimal? FullPaymentBudget { get; set; }
    
    /// <summary>
    /// 分期首付（万元）
    /// </summary>
    [ImporterHeader(Name = "分期首付（万元）")]
    [ExporterHeader("分期首付（万元）", Format = "", Width = 25, IsBold = true)]
    public decimal? InstallmentDownPayment { get; set; }
    
    /// <summary>
    /// 月供预算（元）
    /// </summary>
    [ImporterHeader(Name = "月供预算（元）")]
    [ExporterHeader("月供预算（元）", Format = "", Width = 25, IsBold = true)]
    public decimal? MonthlyPayment { get; set; }
    
    /// <summary>
    /// 是否接受旧车置换
    /// </summary>
    [ImporterHeader(Name = "是否接受旧车置换")]
    [ExporterHeader("是否接受旧车置换", Format = "", Width = 25, IsBold = true)]
    public bool? AcceptTradeIn { get; set; }
    
    /// <summary>
    /// 车况要求
    /// </summary>
    [ImporterHeader(Name = "车况要求")]
    [ExporterHeader("车况要求", Format = "", Width = 25, IsBold = true)]
    public VehicleConditionEnum? ConditionRequirement { get; set; }
    
    /// <summary>
    /// 期望上牌年份（开始）
    /// </summary>
    [ImporterHeader(Name = "期望上牌年份（开始）")]
    [ExporterHeader("期望上牌年份（开始）", Format = "", Width = 25, IsBold = true)]
    public int? RegisterYearFrom { get; set; }
    
    /// <summary>
    /// 期望上牌年份（结束）
    /// </summary>
    [ImporterHeader(Name = "期望上牌年份（结束）")]
    [ExporterHeader("期望上牌年份（结束）", Format = "", Width = 25, IsBold = true)]
    public int? RegisterYearTo { get; set; }
    
    /// <summary>
    /// 最低预算
    /// </summary>
    [ImporterHeader(Name = "最低预算")]
    [ExporterHeader("最低预算", Format = "", Width = 25, IsBold = true)]
    public decimal? BudgetMin { get; set; }
    
    /// <summary>
    /// 最高预算
    /// </summary>
    [ImporterHeader(Name = "最高预算")]
    [ExporterHeader("最高预算", Format = "", Width = 25, IsBold = true)]
    public decimal? BudgetMax { get; set; }
    
    /// <summary>
    /// 期望里程数（万公里）
    /// </summary>
    [ImporterHeader(Name = "期望里程数（万公里）")]
    [ExporterHeader("期望里程数（万公里）", Format = "", Width = 25, IsBold = true)]
    public decimal? ExpectedMileage { get; set; }
    
    /// <summary>
    /// 补充要求
    /// </summary>
    [ImporterHeader(Name = "补充要求")]
    [ExporterHeader("补充要求", Format = "", Width = 25, IsBold = true)]
    public string AdditionalRequirements { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [ImporterHeader(Name = "备注")]
    [ExporterHeader("备注", Format = "", Width = 25, IsBold = true)]
    public string? Remark { get; set; }
    
}
